﻿#ifndef MFORMATUTIL_H
#define MFORMATUTIL_H

#include "BasicType.h"
#include "MFormat.h"
#include "TByteBuffer.h"
#include "MediaFormat.h"


class MFormatUtil
{
public:
    MFormatUtil();

    static void free(MFormat& fmt);

    static void copy(const MFormat& srcFmt, MFormat& fmt);

    static void copyFull(const MFormat& srcFmt, MFormat& fmt);
    static void copyVideo(const MFormat& srcFmt, MFormat& fmt);

    static void copyAudio(const MFormat& srcFmt, MFormat& fmt);

	static bool check(const MFormat& fmt);

    static void copyTo(const MFormat* fmt, av::MediaFormat& mediaFormat);
    static void copyFrom(MFormat* fmt, const av::MediaFormat& mediaFormat);

};

/*

*/

#endif // MFORMATUTIL_H
